package com.kexun.platform;

public enum SOURCE {
    排行榜(1, "排行榜"),
    关键字(2, "关键字"),
    热门歌单(3, "热门歌单"),
    ;
    private int type;

    private String name;

    SOURCE(int type, String name) {
        this.type = type;
        this.name = name;
    }

    public static String getName(int status) {
        for (SOURCE c : SOURCE.values()) {
            if (c.getType() == status) {
                return c.name;
            }
        }
        return null;
    }

    public int getType() {
        return type;
    }

    public void setStatus(int type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}